package com.zhijian.medical.service;

import com.zhijian.medical.entity.po.PersonEnroll;
import com.zhijian.medical.entity.vo.request.PersonEnrollSearchVo;
import com.zhijian.medical.entity.vo.response.PersonEnrollVo;
import com.zhijian.medical.util.Page;

import java.util.List;

/**
 * 人员-报名 业务处理层
 *
 * @author HCG
 * @version 1.0
 * @date 2023-10-31 16:46:18
 */
public interface PersonEnrollService {

    /**
     * 主键查询
     *
     * @param id
     * @return
     */
    PersonEnroll selectById(Long id);

    /**
     * 主键查询vo
     *
     * @param id
     * @return
     */
    PersonEnrollVo selectVoById(Long id);

    /**
     * 按照主键删除
     *
     * @param id
     */
    void deleteById(Long id);

    /**
     * 新增
     *
     * @param personEnroll
     * @return
     */
    Long insert(PersonEnroll personEnroll);

    /**
     * 更改
     *
     * @param personEnroll
     * @return
     */
    boolean update(PersonEnroll personEnroll);

    /**
     * 动态修改
     *
     * @param record
     * @return
     */
    boolean updateByPrimaryKeySelective(PersonEnroll record);

    /**
     * 总数
     *
     * @param personEnrollSearchVo
     * @return
     */
    Integer count(PersonEnrollSearchVo personEnrollSearchVo);

    /**
     * 列表
     *
     * @param personEnrollSearchVo
     * @return
     */
    List<PersonEnrollVo> selectList(PersonEnrollSearchVo personEnrollSearchVo);

    /**
     * 分页查询
     *
     * @param personEnrollSearchVo
     * @return
     */
    Page<PersonEnrollVo> selectPage(PersonEnrollSearchVo personEnrollSearchVo);

    /**
     * 批量新增数据（MyBatis原生foreach方法）
     *
     * @param entities 实例对象列表
     * @return 影响行数
     */
    boolean insertBatch(List<PersonEnroll> entities);
}